export const enum WxSourceType {
    MP = 'MP',
    APP = 'APP',
    MA = 'MA'
}

export interface IWxConfig {
    id?: number;
    wxSourceType?: WxSourceType;
    appId?: string;
    appSec?: string;
    aesKey?: string;
    token?: string;
    merchantId?: string;
    merchantKey?: string;
    hello?: string;
    openId?: string;
    accessToken?: string;
    tokenExpiresTime?: number;
}

export class WxConfig implements IWxConfig {
    constructor(
        public id?: number,
        public wxSourceType?: WxSourceType,
        public appId?: string,
        public appSec?: string,
        public aesKey?: string,
        public token?: string,
        public merchantId?: string,
        public merchantKey?: string,
        public hello?: string,
        public openId?: string,
        public accessToken?: string,
        public tokenExpiresTime?: number
    ) {}
}
